<script setup lang="ts">
import { ref } from 'vue'
import NavHeader from './navHeader/index.vue'
import NavSider from './navSide/index.vue'

let isCollapse = ref(false)
</script>

<template>
  <el-container>
    <el-aside width="auto">
      <nav-sider :collapse="isCollapse"></nav-sider>
    </el-aside>
    <el-container>
      <el-header>
        <nav-header v-model:collapse="isCollapse"></nav-header>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style lang="scss" scoped>
.el-header {
  padding: 0;
  border-bottom: 1px solid #eee;
}
</style>
